<%@ page import="se.cefalo.ceti.ical.ICalService" %>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.Iterator" %>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>

<h1>Alright</h1>


<%
    /* Enumeration allAttrs = request.getAttributeNames();

    while (allAttrs.hasMoreElements()) {
        String key = (String) allAttrs.nextElement();
        out.println(key + "<br>");
    }*/

    ICalService iCalService = (ICalService) request.getAttribute("iCalServiceImpl");

    Collection distinctNames = iCalService.getDistinctNames();

    for (Iterator iterator = distinctNames.iterator(); iterator.hasNext();) {
        String name = (String) iterator.next();
        out.println(name + " (" + iCalService.getTimeReported(name) / 3600 / 1000 + "h )<br>");
    }
%>


</body>
</html>